<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>二网申请</title>
	<link href="${contextPath}/styles/default.css" rel="stylesheet" type="text/css" />
	<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
	<script src="${contextPath}/scripts/scriptvalidator.js" type="text/javascript"></script>
	<script src="${contextPath}/scripts/common.js" type="text/javascript"></script>
</head>
<body>
<div class="navigation">
	    <span><a href="javascript:window.history.back();"><img src="${contextPath}/images/back_nav_btn.png" /></a>
	    <a href="javascript:window.history.back();">返回</a>
	    <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
	     <a href="javascript:window.history.forward();">前进</a>
	    <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
	     <a href="javascript:window.location.reload();">刷新</a>
	    </span>盘库管理&gt;&gt;二网申请
    详情</div>
<div class="xt_main_right_center">
<form name="searchForm" method="post" id="submitForm" enctype="multipart/form-data">

    <input type="hidden" name="redirectUrl" value='<s:property value='redirectUrl'/>'/>
      
      <table  width="100%" border="0" cellpadding="0" cellspacing="0"    style="border-color:#CCCCCC;">
        <tr>
          <td class="left-td-width-bg" align="right">金融机构：</td>
          <td class="right-td-width-bg-left">${theNetwork.financial.name }</td>
          <td class="left-td-width-bg">渠道：</td>
        
          <td   align="left">${theNetwork.brand.name }</td>
          <td class="left-td-width-bg"  align="right"> 销售店名：</td>
          <td class="right-td-width-bg-left"  align="right">${theNetwork.shop.shopName }</td>
         </tr>
        <tr>
          <td class="left-td-width-bg"  align="right">申请人：</td>
          <td class="right-td-width-bg-left" >${theNetwork.creator }</td>
          <td class="left-td-width-bg" >申请单号：</td>
          <td  class="right-td-width-bg-left"  align="right">${theNetwork.theNumber }</td>
          <td class="left-td-width-bg"  align="right">申请时间：</td>
          <td class="right-td-width-bg-left"   align="right">${theNetwork.applicationDate }</td>
        </tr>
        <tr>
          <td class="left-td-width-bg"  align="right">附件下载：</td>
          <td colspan="5"  >
          	<s:iterator value="attachs" >
					<div style="display: inline">
						<a href="${contextPath}/attach/download.do?id=<s:property value="id"/>" ><s:property value="name"/></a>
					</div>
				</s:iterator> 
          </td>
        </tr>
        <tr>
           <td class="left-td-width-bg"  align="right">申请列表：</td>
          <td colspan="5"  ><table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
             
              <td class="top-td-width-bg">序号</td>
              <td class="top-td-width-bg">合格证号</td>
              <td class="top-td-width-bg">车架号</td>
              <td class="top-td-width-bg">车型</td>
              <td class="top-td-width-bg">发动机号</td>
              <td class="top-td-width-bg">供货价</td>
              <td class="top-td-width-bg">回库地址</td> 
              <td class="top-td-width-bg">二网地址</td>
             <td class="top-td-width-bg">审核状态</td>
            </tr>
            <s:iterator value="theNetwork.theNetworks" status="i" id="c">
            <tr>
             
              <td class="down-center-td-width-bg">${i.count }</td>
              <td class="down-center-td-width-bg">${c.certificationNum }</td>
              <td class="down-center-td-width-bg">${c.chassis }</td>
              <td class="down-center-td-width-bg">${c.motorcycleType }</td>
              <td class="down-center-td-width-bg">${c.engine }</td>
              <td class="down-center-td-width-bg"><s:property value="formatAmount(#c.supplyPrice)"/></td>
              <td class="down-center-td-width-bg">${c.shopName }</td>
              <td class="down-center-td-width-bg">
             	${c.theAddress }
               </td>
               <td class="down-center-td-width-bg">
	             ${c.isNotPass }
	              </td>
            </tr>
            </s:iterator>
          </table></td>
        </tr>
         <tr>
      <td class="down-center-td-width-bg"  colspan="11" align="right"> <%@ include file="/WEB-INF/view/common/pagination.jsp"%></td>
    </tr>
      </table>
        	  <s:if test="workflow!=null&&workflow.operates!=null">
		<br/>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		  <tr>
		    <td height="25" align="left"><font color="#0066CC"><strong>流程操作记录：</strong></font></td>
		    <td height="25" align="right">
		    </td>
		  </tr>
		</table> 
		<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
		  <tr> 
		    <td width="3%" class="top-td-width-bg">序号</td>
		    <td width="20%" class="top-td-width-bg">操作人</td>
		    <td width="20%" class="top-td-width-bg">操作类型</td>
		    <td width="40%" class="top-td-width-bg">描述</td>
		    <td width="17%" class="top-td-width-bg">操作时间</td>
		  </tr>
		 <s:iterator value="workflow.operates" status="stx" >
			<tr height="26" align="center" bgcolor="#FFFFFF" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#FFFFFF';"> 
			 	<td align="center"><s:property value="#stx.index+1"/></td>
			    <td align="center"><s:property value="operater.realName"/></td>
			    <td align="center"><s:property value="type.name"/></td>
			    <td align="center"><s:property value="description"/></td>
			    <td align="center"><s:property value="operateDate"/></td>
			</tr>
		</s:iterator>
		</table>
		<br/>
	</s:if>
      <input type="hidden" id="allData" name="allData" value="<s:property value='allData'/>"/>
</form> 
</div>
<br/><br/><br/><br/><br/>
		<div><jsp:include page="/include/footer.inc"></jsp:include></div>
<script  language='javascript'>
function jumpPage(page) {
	var searchForm = document.searchForm;
	searchForm.action = "<s:property value='contextPath'/>/cs/ct/choose.do?currentPage=" + page;
	searchForm.submit();
}
function checkSubmit(){
 	var staffForm = document.searchForm;
	if(!Validator.Validate(staffForm, 3)){
		return false;
	}
	return true;
 }
function del(e,id){
	if(confirm("附件操作不可恢复,确认删除吗?")){
		var f=false;
		$.ajax({
			  async:false,
			  type: 'POST',
			  url: "<s:property value='contextPath'/>/attach/del.do?id="+id,
			  dataType: "json",
			  success: function(data) {
					  	f = data.flag;
					  	if(f){
					  		//alert("删除成功");
					  		$(e).parent().remove();
					  	}
					}
				,
				error:function(data){
				}
			}); 
		
	}
	
}
</script>
 
</body>
</html>